package com.fb.academy.controller;

import com.fb.academy.bean.po.AcademySpecial;
import com.fb.academy.service.AcademySpecialService;
import com.fb.common.messagehandler.JsonStandardMsgBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author why
 * @date 2019/3/14 0014.
 */
@RestController
public class AcademySpecialController {


    @Autowired
    private AcademySpecialService academySpecialService;

    @RequestMapping("/showAcademySpecial")
    public String showAcademySpecial() {
        List<AcademySpecial> list = academySpecialService.selectAllAcademySpecial();
        return JsonStandardMsgBean.getMsgJsonWithData(list);
    }
}
